package cc.deng.wubo.minapp.beans.game;

import cc.deng.wubo.minapp.core.base.BaseModel;
import org.nutz.dao.DB;
import org.nutz.dao.entity.annotation.*;
import org.nutz.json.JsonField;

import java.util.Date;

@Table("gm_check_log")
public class GmCheckLog extends BaseModel{
    @Id
    //@JsonField(forceString = true)
    @Prev({
            @SQL(db= DB.MYSQL,value = "SELECT IFNULL(MAX(id),0)+1 FROM gm_check_log"),
            @SQL(db= DB.ORACLE,value = "SELECT COALESCE(MAX(id),0)+1 FROM gm_check_log")
    })
    @Column
    private Long id;

    @Column
    private Long gmUserId;
    @Column
    private Date checkTime;


    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGmUserId() {
        return gmUserId;
    }

    public void setGmUserId(Long gmUserId) {
        this.gmUserId = gmUserId;
    }
}
